﻿@using NewRen.Models;
@using NewRen.Models.ViewModel
@model NewRen.Models.Business
@{
    vBusiness business = ViewBag.Business as vBusiness;
    List<Images> images = ViewBag.Images;
    ViewBag.Title = "商户中心";
    Layout = "~/Views/Shared/_Layout_Business.cshtml";
}
<div class="ucenter-left account-left-border">
    <div class="ucneter-l-head cf">
        <div class="ulhead-headicon">
            @if (business.Picture == null)
            {
                <img src="/Images/userphoto.png" width="50" height="50"
                     alt=@business.BusinessName style="border-radius:50%;" />
            }
            else
            {
                <img src="/Business/ShowPicture/@business.ID" width="50"
                     alt=@business.BusinessName height="50" style="border-radius:50%;" />
            }

        </div>
        <div class="ulhead-info">
            <p class="ulhead-info-uname">@business.BusinessName</p>

            <div class="ulhead-info-tool">
                <a class="ulhead-icon icon-lock ucenter-mail " href="/Business/PwdEdit/@business.ID" title="修改密码">
                    <div class="ucenter-mail-tip">修改密码</div>
                </a>
                <a href="/Business/Edit/@business.ID"
                   class="ulhead-icon icon-setting ucenter-mail" title="设置商户信息"></a>
            </div>
        </div>
    </div>
    <div class="ucenter-l-list">
        <ul class="ullist-ul">
            <li id="uclick" class="active">
                <a href="/Business/Show/@business.ID">商户中心</a>
            </li>
            <li id="uclick1">
                <a href="/Business/Edit/@business.ID">商户设置</a>
            </li>
            <li id="uclick2">
                <a href="/Business/ProductManager/@business.ID">商户商品</a>
            </li>
            <li id="uclick3">
                <a href="/Business/ExchangeManager/@business.ID">兑换管理</a>
            </li>
        </ul>
    </div>
</div>
<div class="ucenter-right cf">
    <div class="ucenter-right-head"><h3>商户中心</h3></div>
    <div class="ucenter-right-body">
        <div class="tabbed">
            <div class=" tabGroup">
                <div class="form-item">
                    <div class="item-label">
                        <label>商户名：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.BusinessName</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>电话：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.Phone</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>地址：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.Address</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>城市：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.City</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>邮箱：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.Email</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>微博：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.Weibo</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>微信：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.WhatApp</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>行业：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.Industry</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>描述：</label>
                    </div>
                    <div class="item-span">
                        <span class="defInfo">@business.Description</span>
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>认证：</label>
                    </div>
                    <div class="item-span">
                        @{
                            if (business.IsVerified)
                            {
                                <span class="defInfo">认证</span>
                            }
                            else
                            {
                                <span class="defInfo">未认证</span>
                            }

                        }
                    </div>
                </div>
                <div class="form-item">
                    <div class="item-label">
                        <label>宣传图片：</label>
                    </div>
                    <div class="item-span">
                        @if (images.Count > 0)
                        {
                            foreach (Images item in images)
                            {
                                <img src="@item.Path" class="product_list_img">
                            }
                        }
                        else
                        {
                            <span class="defInfo">暂无图片</span>
                        }
</div>
                </div>
            </div>
        </div>
    </div>
</div>